﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Web.Api.Server.ViewModels
{
    public class PostLoginViewModel
    {
        [Display(Name = "用户名")]
        [Required(ErrorMessage = "{0} 必须填写")]
        public string Username { get; set; }
        [Display(Name = "用户密码")]
        [Required(ErrorMessage = "{0} 必须填写")]
        public string Password { get; set; }
    }

    public class CheckUserViewModel
    {
        public string Username { get; set; }

        public string Roles { get; set; }
    }
}
